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,EAAE,OAAO,sBAAsB,KAAK,UAAU;AAC9C,MAAM,4EAAuC,CAAC,sBAAsB,EAAE,gCAAgC,CAAC;AACvG,MAAM,UAAU;AAChB;AACM,yBAAmB,GAAG,aAAa,GAAG,uEAAkC,CAAC,aAAa,EAAE,GAAG;;;;;;;;;;;;AC1CjG;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA;;;;;;;ACAA","sources":["webpack://quran.com/src/pages/[chapterId]/[verseId]/tafsirs.tsx","webpack://quran.com/sentry-wrapper-module","webpack://quran.com/external commonjs \"@reduxjs/toolkit\"","webpack://quran.com/external commonjs \"@sentry/nextjs\"","webpack://quran.com/external commonjs \"classnames\"","webpack://quran.com/external commonjs \"humps\"","webpack://quran.com/external commonjs \"lodash/findKey\"","webpack://quran.com/external commonjs \"lodash/groupBy\"","webpack://quran.com/external commonjs \"lodash/random\"","webpack://quran.com/external commonjs \"lodash/range\"","webpack://quran.com/external commonjs \"lodash/uniq\"","webpack://quran.com/external commonjs \"next-seo\"","webpack://quran.com/external commonjs \"next-translate/useTranslation\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/app-router-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/head-manager-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/i18n/detect-domain-locale.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/i18n/normalize-locale-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/is-plain-object.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/mitt.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/page-path/denormalize-page-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router-context.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/add-locale.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/add-path-prefix.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/compare-states.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/format-next-pathname-info.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/format-url.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/get-asset-path-from-route.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/get-next-pathname-info.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/is-bot.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/is-dynamic.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/parse-path.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/parse-relative-url.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/path-has-prefix.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/querystring.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/remove-trailing-slash.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/resolve-rewrites.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/route-matcher.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/router/utils/route-regex.js\"","webpack://quran.com/external commonjs \"next/dist/shared/lib/utils.js\"","webpack://quran.com/external commonjs \"next/router\"","webpack://quran.com/external commonjs \"react\"","webpack://quran.com/external commonjs \"react-redux\"","webpack://quran.com/external commonjs \"react/jsx-runtime\"","webpack://quran.com/external commonjs \"refresh-fetch\"","webpack://quran.com/external module \"@radix-ui/react-separator\"","webpack://quran.com/external module \"@radix-ui/react-tooltip\"","webpack://quran.com/external module \"firebase/compat/analytics\"","webpack://quran.com/external module \"firebase/compat/app\"","webpack://quran.com/external module \"js-cookie\"","webpack://quran.com/external module \"react-toastify\"","webpack://quran.com/external module \"swr\"","webpack://quran.com/external module \"swr/immutable\"","webpack://quran.com/external node-commonjs \"querystring\""],"sourcesContent":["/* eslint-disable react-func/max-lines-per-function */\nimport { GetStaticPaths, GetStaticProps, NextPage } from 'next';\nimport { useRouter } from 'next/router';\nimport useTranslation from 'next-translate/useTranslation';\nimport { SWRConfig } from 'swr';\n\nimport styles from './tafsirs.module.scss';\n\nimport { fetcher, getChapterIdBySlug } from '@/api';\nimport NextSeoWrapper from '@/components/NextSeoWrapper';\nimport TafsirBody from '@/components/QuranReader/TafsirView/TafsirBody';\nimport Error from '@/pages/_error';\nimport {\n getQuranReaderStylesInitialState,\n getTafsirsInitialState,\n} from '@/redux/defaultSettings/util';\nimport { makeTafsirContentUrl, makeTafsirsUrl } from '@/utils/apiPaths';\nimport { getAllChaptersData, getChapterData } from '@/utils/chapter';\nimport { getLanguageAlternates, toLocalizedNumber } from '@/utils/locale';\nimport {\n getCanonicalUrl,\n getVerseTafsirNavigationUrl,\n scrollWindowToTop,\n} from '@/utils/navigation';\nimport {\n REVALIDATION_PERIOD_ON_ERROR_SECONDS,\n ONE_WEEK_REVALIDATION_PERIOD_SECONDS,\n} from '@/utils/staticPageGeneration';\nimport { isValidVerseId } from '@/utils/validator';\nimport { makeVerseKey } from '@/utils/verse';\nimport { ChapterResponse, VersesResponse } from 'types/ApiResponses';\nimport ChaptersData from 'types/ChaptersData';\n\ntype AyahTafsirProp = {\n chapter?: ChapterResponse;\n verses?: VersesResponse;\n hasError?: boolean;\n chaptersData: ChaptersData;\n fallback: any;\n};\n\nconst AyahTafsir: NextPage<AyahTafsirProp> = ({ hasError, chapter, fallback }) => {\n const { t, lang } = useTranslation('common');\n const router = useRouter();\n const {\n query: { verseId },\n } = router;\n if (hasError) {\n return <Error statusCode={500} />;\n }\n const path = getVerseTafsirNavigationUrl(chapter.chapter.slug, Number(verseId));\n\n const localizedVerseNumber = toLocalizedNumber(Number(verseId), lang);\n return (\n <>\n <NextSeoWrapper\n title={`${t('tafsir.surah')} ${\n chapter.chapter.transliteratedName\n } - ${localizedVerseNumber}`}\n canonical={getCanonicalUrl(lang, path)}\n languageAlternates={getLanguageAlternates(path)}\n description={t('tafsir.tafsirs-desc', {\n ayahNumber: localizedVerseNumber,\n surahName: chapter.chapter.transliteratedName,\n })}\n />\n {/* @ts-ignore */}\n <SWRConfig value={{ fallback }}>\n <div className={styles.tafsirContainer}>\n <TafsirBody\n shouldRender\n initialChapterId={chapter.chapter.id.toString()}\n initialVerseNumber={verseId.toString()}\n initialTafsirIdOrSlug={\n router.query.tafsirId ? Number(router.query.tafsirId) : undefined\n }\n scrollToTop={scrollWindowToTop}\n render={({ body, languageAndTafsirSelection, surahAndAyahSelection }) => {\n return (\n <div>\n {surahAndAyahSelection}\n {languageAndTafsirSelection}\n {body}\n </div>\n );\n }}\n />\n </div>\n </SWRConfig>\n </>\n );\n};\n\nconst notFoundResponse = {\n props: {\n hasError: true,\n },\n revalidate: REVALIDATION_PERIOD_ON_ERROR_SECONDS, // 35 seconds will be enough time before we re-try generating the page again.\n};\n\nexport const getStaticProps: GetStaticProps = async ({ params, locale }) => {\n try {\n let chapterIdOrSlug = String(params.chapterId);\n const verseId = String(params.verseId);\n // 1. make sure the chapter Id/slug is valid using BE since slugs are stored in BE first\n const sluggedChapterId = await getChapterIdBySlug(chapterIdOrSlug, locale);\n if (sluggedChapterId) {\n chapterIdOrSlug = sluggedChapterId;\n }\n const chaptersData = await getAllChaptersData(locale);\n // 2. make sure that verse id is valid before calling BE to get the verses.\n if (!isValidVerseId(chaptersData, chapterIdOrSlug, verseId)) {\n return { notFound: true };\n }\n\n const chapterData = getChapterData(chaptersData, chapterIdOrSlug);\n const { quranFont, mushafLines } = getQuranReaderStylesInitialState(locale);\n\n const tafsirContentUrl = makeTafsirContentUrl(\n getTafsirsInitialState(locale).selectedTafsirs[0],\n makeVerseKey(Number(chapterIdOrSlug), Number(verseId)),\n {\n lang: locale,\n quranFont,\n mushafLines,\n },\n );\n const tafsirListUrl = makeTafsirsUrl(locale);\n\n const [tafsirContentData, tafsirListData] = await Promise.all([\n fetcher(tafsirContentUrl),\n fetcher(tafsirListUrl),\n ]);\n\n if (!chapterData) return notFoundResponse;\n\n return {\n props: {\n chaptersData,\n fallback: {\n [tafsirContentUrl]: tafsirContentData,\n [tafsirListUrl]: tafsirListData,\n },\n chapter: {\n chapter: { ...chapterData, id: chapterIdOrSlug },\n },\n },\n revalidate: ONE_WEEK_REVALIDATION_PERIOD_SECONDS, // verses will be generated at runtime if not found in the cache, then cached for subsequent requests for 7 days.\n };\n } catch (error) {\n return notFoundResponse;\n }\n};\nexport const getStaticPaths: GetStaticPaths = async () => ({\n paths: [], // no pre-rendered chapters at build time.\n fallback: 'blocking', // will server-render pages on-demand if the path doesn't exist.\n});\n\nexport default AyahTafsir;\n","import * as Sentry from '@sentry/nextjs';\nimport * as serverComponentModule from '__SENTRY_WRAPPING_TARGET_FILE__.cjs';\nexport * from '__SENTRY_WRAPPING_TARGET_FILE__.cjs';\n\n/*\n * This file is a template for the code which will be substituted when our webpack loader handles non-API files in the\n * `pages/` directory.\n *\n * We use `__SENTRY_WRAPPING_TARGET_FILE__.cjs` as a placeholder for the path to the file being wrapped. Because it's not a real package,\n * this causes both TS and ESLint to complain, hence the pragma comments below.\n */\n\nconst userPageModule = serverComponentModule ;\n\nconst pageComponent = userPageModule ? userPageModule.default : undefined;\n\nconst origGetInitialProps = pageComponent ? pageComponent.getInitialProps : undefined;\nconst origGetStaticProps = userPageModule ? userPageModule.getStaticProps : undefined;\nconst origGetServerSideProps = userPageModule ? userPageModule.getServerSideProps : undefined;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst getInitialPropsWrappers = {\n '/_app': Sentry.wrapAppGetInitialPropsWithSentry,\n '/_document': Sentry.wrapDocumentGetInitialPropsWithSentry,\n '/_error': Sentry.wrapErrorGetInitialPropsWithSentry,\n};\n\nconst getInitialPropsWrapper = getInitialPropsWrappers['/[chapterId]/[verseId]/tafsirs'] || Sentry.wrapGetInitialPropsWithSentry;\n\nif (pageComponent && typeof origGetInitialProps === 'function') {\n pageComponent.getInitialProps = getInitialPropsWrapper(origGetInitialProps) ;\n}\n\nconst getStaticProps =\n typeof origGetStaticProps === 'function'\n ? Sentry.wrapGetStaticPropsWithSentry(origGetStaticProps, '/[chapterId]/[verseId]/tafsirs')\n : undefined;\nconst getServerSideProps =\n typeof origGetServerSideProps === 'function'\n ? Sentry.wrapGetServerSidePropsWithSentry(origGetServerSideProps, '/[chapterId]/[verseId]/tafsirs')\n : undefined;\n\nconst pageWrapperTemplate = pageComponent ? Sentry.wrapPageComponentWithSentry(pageComponent ) : pageComponent;\n\nexport { pageWrapperTemplate as default, getServerSideProps, getStaticProps };\n","module.exports = require(\"@reduxjs/toolkit\");","module.exports = require(\"@sentry/nextjs\");","module.exports = require(\"classnames\");","module.exports = require(\"humps\");","module.exports = require(\"lodash/findKey\");","module.exports = require(\"lodash/groupBy\");","module.exports = require(\"lodash/random\");","module.exports = require(\"lodash/range\");","module.exports = require(\"lodash/uniq\");","module.exports = require(\"next-seo\");","module.exports = require(\"next-translate/useTranslation\");","module.exports = require(\"next/dist/shared/lib/app-router-context.js\");","module.exports = require(\"next/dist/shared/lib/head-manager-context.js\");","module.exports = require(\"next/dist/shared/lib/i18n/detect-domain-locale.js\");","module.exports = require(\"next/dist/shared/lib/i18n/normalize-locale-path.js\");","module.exports = require(\"next/dist/shared/lib/is-plain-object.js\");","module.exports = require(\"next/dist/shared/lib/mitt.js\");","module.exports = require(\"next/dist/shared/lib/page-path/denormalize-page-path.js\");","module.exports = require(\"next/dist/shared/lib/router-context.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/add-locale.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/add-path-prefix.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/compare-states.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/format-next-pathname-info.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/format-url.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/get-asset-path-from-route.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/get-next-pathname-info.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/is-bot.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/is-dynamic.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/parse-path.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/parse-relative-url.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/path-has-prefix.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/querystring.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/remove-trailing-slash.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/resolve-rewrites.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/route-matcher.js\");","module.exports = require(\"next/dist/shared/lib/router/utils/route-regex.js\");","module.exports = require(\"next/dist/shared/lib/utils.js\");","module.exports = require(\"next/router\");","module.exports = require(\"react\");","module.exports = require(\"react-redux\");","module.exports = require(\"react/jsx-runtime\");","module.exports = require(\"refresh-fetch\");","module.exports = import(\"@radix-ui/react-separator\");;","module.exports = import(\"@radix-ui/react-tooltip\");;","module.exports = import(\"firebase/compat/analytics\");;","module.exports = import(\"firebase/compat/app\");;","module.exports = import(\"js-cookie\");;","module.exports = import(\"react-toastify\");;","module.exports = import(\"swr\");;","module.exports = import(\"swr/immutable\");;","module.exports = require(\"querystring\");"],"names":["AyahTafsir","hasError","chapter","fallback","t","lang","useTranslation","router","useRouter","query","verseId","_jsx","Error","statusCode","path","getVerseTafsirNavigationUrl","slug","Number","localizedVerseNumber","toLocalizedNumber","_jsxs","_Fragment","NextSeoWrapper","title","transliteratedName","canonical","getCanonicalUrl","languageAlternates","getLanguageAlternates","description","ayahNumber","surahName","SWRConfig","value","div","className","styles","tafsirContainer","TafsirBody","shouldRender","initialChapterId","id","toString","initialVerseNumber","initialTafsirIdOrSlug","tafsirId","undefined","scrollToTop","scrollWindowToTop","render","body","languageAndTafsirSelection","surahAndAyahSelection","notFoundResponse","props","revalidate","REVALIDATION_PERIOD_ON_ERROR_SECONDS","getStaticProps","params","locale","chapterIdOrSlug","String","chapterId","sluggedChapterId","getChapterIdBySlug","chaptersData","getAllChaptersData","isValidVerseId","notFound","chapterData","getChapterData","quranFont","mushafLines","getQuranReaderStylesInitialState","tafsirContentUrl","makeTafsirContentUrl","getTafsirsInitialState","selectedTafsirs","makeVerseKey","tafsirListUrl","makeTafsirsUrl","tafsirContentData","tafsirListData","Promise","all","fetcher","ONE_WEEK_REVALIDATION_PERIOD_SECONDS","error","getStaticPaths","paths"],"sourceRoot":""}
|